@charset "utf-8";


/*------------------------------*/
/*          function            */
/*------------------------------*/
@function rem($px) {
    @return ($px / 100) * 1rem;
}

/*  不需要随屏幕变化的 2倍图 除以2  */
@function half($px) {
    @return ($px * 375 /750) * 1px;
}

/*------------------------------*/
/*              class           */
/*------------------------------*/

/*  code reusing: son item justify    */
@mixin inline_blocks_justify {
    text-align: justify;
    &::after{
        content: "";
        display: inline-block;
        width: 100%;
    }
}


/*  img_processing  */
.img_processing{
    width: 100%;
    height:100%;
}
/*  title_icon + title_text */
.title_area{
    width: rem(221);
    height: inherit;
    box-sizing: border-box;
    padding-left: rem(21);
    padding-top: rem(35); 
}
.title_icon{
    width: rem(57);
    height: rem(53);
    vertical-align: bottom;
}
.title_text{
    font-size: rem(30);
    font-family: "Microsoft YaHei", "Microsoft YaHei UI", "微软雅黑", Arial,Helvetica, Tahoma, STXihei, "华文细黑",SimSun, "宋体", Heiti, "黑体", sans-serif;
    color: black;
    vertical-align: bottom;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
/*  for_more    */

/*-------------------------------*/
/*              layout           */
/*-------------------------------*/
header {
    position: fixed;
    width: 100%;
    height: half(200);
    top: 0;
    padding: half(48) half(24) half(18);

    .back_button {
        width: half(118);
        height: half(52);
        border: 1px solid #ff9344;
        border-radius: half(14);
        p{
            @extend .title_text;
            font-size: half(26);
            line-height: half(52);
            text-align: center;
        }
    }

    .cityBar {
        width: half(157);
        height: half(54);
        border: 1px solid #ff9344;
        font-size: 0;
        margin-top: 0;

        select {
            width: 100%;
            height: 100%;
            // 去除默认样式
            -webkit-appearance: none;
            appearance: none;
            border: 0;
            border-radius: 0;
            padding-left: 14px;
            background-image: url("../img/jiantou.png");
            background-repeat: no-repeat;
            background-position: right 5px center;
            background-size: half(30) half(16);
        }

        option {
            width: 100%;
        }
    }

    .nameBar {
        margin: 0 auto;
        width: half(100);
        height: half(52);
        overflow: hidden;
        text-align: center;

        p{
            @extend .title_text;
            line-height: half(52);
            font-size: half(26);
        }

    }

    .searchBar {
        margin: half(24) auto 0;
        width: rem(264);
        height: half(50);
        border: 1px solid #ff9344;
        border-radius: half(50);
        font-size: 0;
        overflow: hidden;

        input[type="image"] {
            width: half(37);
            height: half(35);
            vertical-align: middle;
        }

        input[type="text"] {
            width: calc(100% - 28.5px);
            border: none;
            text-indent: half(26);
            height: 100%;
            vertical-align: middle;
        }
    }
}

#main {
    position: fixed;
    top: half(200);
    bottom: half(136);
    width: 100%;
    overflow-x: hidden;
    overflow-y: scroll;
    // background-color: skyblue;
    box-sizing: border-box;
    padding-left: rem(23);
    padding-right: rem(23);
    /*  other search*/
    .other_search{
        width: rem(530);
        height: rem(208);
        margin: 0 auto;
        font-size: 0;
        text-align: center;
        .os_title{
            height: rem(34);
            margin-bottom: rem(16);
            p{
                @extend .title_text;
                font-size: rem(26);
            }
        }
        .os_item{
            width: inherit;
            // height: ;
            @include inline_blocks_justify();
            .os_item_area{
                display: inline-block;
                vertical-align: top;
                margin-bottom: rem(4);
                width: 23.4%;
                height: rem(63);
                background-color: #dcdcdc;
                text-align: center;

                p{
                    @extend .title_text;
                    font-size: rem(20);
                    color: #898989;
                    line-height: rem(63);
                }
            }
        }
        
    }

    /*  discover    */
    .discover{
        // ddddddddd

        .discover_area{
            border-bottom: 1px solid transparent;
            .discover_title{
                width: rem(701);
                height: rem(63);
                .title_area{
                    font-size: 0;
                    padding-left: rem(7);
                    padding-top: 0;
                    .icon_fire{
                        margin-top: rem(15);
                        width: rem(32);
                        height: rem(46);
                        overflow: hidden;
                    }
                    .icon_star{
                        margin-top: rem(15);
                        width: rem(51);
                        height: rem(48);
                        overflow: hidden;
                    }
                    p{
                        @extend .title_text;
                        margin-top: rem(20);
                        text-indent: rem(15);
                    }
                }
                .for_more{
                    width: auto;
                    height: inherit;
                    box-sizing: border-box;
                    padding: rem(23) 0 rem(11) rem(43);
                    font-size: 0;
                   .for_more_icon{
                       width: rem(25);
                       height: rem(25);
                       overflow: hidden;
                   }
                    p{
                        @extend .title_text;
                        vertical-align: bottom;
                        font-size: rem(24);
                    }
                }
            }
            .discover_content{
                width: rem(701);
                // height: rem(351);
                margin-top: rem(37);
                margin-bottom: rem(49);
                font-size: 0;
                .d_c_l{
                    display: inline-block;
                    vertical-align: top;
                    width: rem(278);
                    height: inherit;
                }
                .d_c_r{
                    display: inline-block;
                    vertical-align: top;
                    width: rem(419);
                    height: inherit;
                    .d_c_r_t{
                        margin-bottom: 2.5%;
                        width: inherit;
                        height: 41%;
                    }
                    .d_c_r_b{
                        width: inherit;
                        height: 56%;
                        .d_c_r_b_l{
                            width: rem(190);
                            height: 100%;
                        }
                        .d_c_r_b_r{
                            width: rem(220);
                            height: 100%;
                        }
                    }

                }
                .content_img{
                    background-color: black;
                    overflow: hidden;
                    img{
                        width: 100%;
                        height: 100%;
                    }
                }
            }
            .discover_content2{
                width: rem(701);
                margin-top: rem(37);
                margin-bottom: rem(49);
                font-size: 0;
                @include inline_blocks_justify();

                .d_c_2_area{
                    display: inline-block;
                    // background-color: red;
                    height: rem(200);
                }
                .dc2_01{
                    width: rem(226);
                }
                .dc2_02{
                    width: rem(210);
                }
                .dc2_03{
                    width: rem(219);
                }
            }
        }
    }

}